package haiyangwangwork.day11.homework.hk.张柳柳;

public class Demo2 {
    public static void main(String[] args) {
        int [] a = {100,60,70,80,75,85,90};
        for (int i=0;i<a.length-1;i++){
            for (int j=0;j<a.length-1-i;j++){
                if (a[i]<a[i+1]){
                    int temp;
                    temp=a[i+1];
                    a[i+1]=a[i];
                    a[i]=temp;
                }
            }
        }
        for (int e:a){
            System.out.print(e+" ");
        }
        int max=a[0];
        System.out.println(max);
    }
}
